using System;
using System.Collections.Generic;
using System.Reflection;
using System.Runtime.InteropServices;

using ILRuntime.CLR.TypeSystem;
using ILRuntime.CLR.Method;
using ILRuntime.Runtime.Enviorment;
using ILRuntime.Runtime.Intepreter;
using ILRuntime.Runtime.Stack;
using ILRuntime.Reflection;
using ILRuntime.CLR.Utils;
using System.Linq;

namespace ILRuntime.Runtime.Generated
{
    unsafe class huqiang_UIComposite_ScrollYExtand_Binding_DataTemplate_Binding
    {
        public static void Register(ILRuntime.Runtime.Enviorment.AppDomain app)
        {
            BindingFlags flag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly;
            MethodBase method;
            FieldInfo field;
            Type[] args;
            Type type = typeof(huqiang.UIComposite.ScrollYExtand.DataTemplate);
            args = new Type[]{};
            method = type.GetMethod("get_Height", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_Height_0);

            field = type.GetField("Title", flag);
            app.RegisterCLRFieldGetter(field, get_Title_0);
            app.RegisterCLRFieldSetter(field, set_Title_0);
            app.RegisterCLRFieldBinding(field, CopyToStack_Title_0, AssignFromStack_Title_0);
            field = type.GetField("Tail", flag);
            app.RegisterCLRFieldGetter(field, get_Tail_1);
            app.RegisterCLRFieldSetter(field, set_Tail_1);
            app.RegisterCLRFieldBinding(field, CopyToStack_Tail_1, AssignFromStack_Tail_1);
            field = type.GetField("Data", flag);
            app.RegisterCLRFieldGetter(field, get_Data_2);
            app.RegisterCLRFieldSetter(field, set_Data_2);
            app.RegisterCLRFieldBinding(field, CopyToStack_Data_2, AssignFromStack_Data_2);
            field = type.GetField("Hide", flag);
            app.RegisterCLRFieldGetter(field, get_Hide_3);
            app.RegisterCLRFieldSetter(field, set_Hide_3);
            app.RegisterCLRFieldBinding(field, CopyToStack_Hide_3, AssignFromStack_Hide_3);
            field = type.GetField("HideTail", flag);
            app.RegisterCLRFieldGetter(field, get_HideTail_4);
            app.RegisterCLRFieldSetter(field, set_HideTail_4);
            app.RegisterCLRFieldBinding(field, CopyToStack_HideTail_4, AssignFromStack_HideTail_4);
            field = type.GetField("ShowHeight", flag);
            app.RegisterCLRFieldGetter(field, get_ShowHeight_5);
            app.RegisterCLRFieldSetter(field, set_ShowHeight_5);
            app.RegisterCLRFieldBinding(field, CopyToStack_ShowHeight_5, AssignFromStack_ShowHeight_5);
            field = type.GetField("aniTime", flag);
            app.RegisterCLRFieldGetter(field, get_aniTime_6);
            app.RegisterCLRFieldSetter(field, set_aniTime_6);
            app.RegisterCLRFieldBinding(field, CopyToStack_aniTime_6, AssignFromStack_aniTime_6);


            app.RegisterCLRCreateDefaultInstance(type, () => new huqiang.UIComposite.ScrollYExtand.DataTemplate());
            app.RegisterCLRCreateArrayInstance(type, s => new huqiang.UIComposite.ScrollYExtand.DataTemplate[s]);

            args = new Type[]{};
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_0);

        }


        static StackObject* get_Height_0(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            huqiang.UIComposite.ScrollYExtand.DataTemplate instance_of_this_method = (huqiang.UIComposite.ScrollYExtand.DataTemplate)typeof(huqiang.UIComposite.ScrollYExtand.DataTemplate).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.Height;

            __ret->ObjectType = ObjectTypes.Float;
            *(float*)&__ret->Value = result_of_this_method;
            return __ret + 1;
        }


        static object get_Title_0(ref object o)
        {
            return ((huqiang.UIComposite.ScrollYExtand.DataTemplate)o).Title;
        }

        static StackObject* CopyToStack_Title_0(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.UIComposite.ScrollYExtand.DataTemplate)o).Title;
            object obj_result_of_this_method = result_of_this_method;
            if(obj_result_of_this_method is CrossBindingAdaptorType)
            {    
                return ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance, true);
            }
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method, true);
        }

        static void set_Title_0(ref object o, object v)
        {
            ((huqiang.UIComposite.ScrollYExtand.DataTemplate)o).Title = (System.Object)v;
        }

        static StackObject* AssignFromStack_Title_0(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            System.Object @Title = (System.Object)typeof(System.Object).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            ((huqiang.UIComposite.ScrollYExtand.DataTemplate)o).Title = @Title;
            return ptr_of_this_method;
        }

        static object get_Tail_1(ref object o)
        {
            return ((huqiang.UIComposite.ScrollYExtand.DataTemplate)o).Tail;
        }

        static StackObject* CopyToStack_Tail_1(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.UIComposite.ScrollYExtand.DataTemplate)o).Tail;
            object obj_result_of_this_method = result_of_this_method;
            if(obj_result_of_this_method is CrossBindingAdaptorType)
            {    
                return ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance, true);
            }
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method, true);
        }

        static void set_Tail_1(ref object o, object v)
        {
            ((huqiang.UIComposite.ScrollYExtand.DataTemplate)o).Tail = (System.Object)v;
        }

        static StackObject* AssignFromStack_Tail_1(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            System.Object @Tail = (System.Object)typeof(System.Object).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            ((huqiang.UIComposite.ScrollYExtand.DataTemplate)o).Tail = @Tail;
            return ptr_of_this_method;
        }

        static object get_Data_2(ref object o)
        {
            return ((huqiang.UIComposite.ScrollYExtand.DataTemplate)o).Data;
        }

        static StackObject* CopyToStack_Data_2(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.UIComposite.ScrollYExtand.DataTemplate)o).Data;
            object obj_result_of_this_method = result_of_this_method;
            if(obj_result_of_this_method is CrossBindingAdaptorType)
            {    
                return ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance);
            }
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_Data_2(ref object o, object v)
        {
            ((huqiang.UIComposite.ScrollYExtand.DataTemplate)o).Data = (System.Collections.IList)v;
        }

        static StackObject* AssignFromStack_Data_2(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            System.Collections.IList @Data = (System.Collections.IList)typeof(System.Collections.IList).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            ((huqiang.UIComposite.ScrollYExtand.DataTemplate)o).Data = @Data;
            return ptr_of_this_method;
        }

        static object get_Hide_3(ref object o)
        {
            return ((huqiang.UIComposite.ScrollYExtand.DataTemplate)o).Hide;
        }

        static StackObject* CopyToStack_Hide_3(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.UIComposite.ScrollYExtand.DataTemplate)o).Hide;
            __ret->ObjectType = ObjectTypes.Integer;
            __ret->Value = result_of_this_method ? 1 : 0;
            return __ret + 1;
        }

        static void set_Hide_3(ref object o, object v)
        {
            ((huqiang.UIComposite.ScrollYExtand.DataTemplate)o).Hide = (System.Boolean)v;
        }

        static StackObject* AssignFromStack_Hide_3(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            System.Boolean @Hide = ptr_of_this_method->Value == 1;
            ((huqiang.UIComposite.ScrollYExtand.DataTemplate)o).Hide = @Hide;
            return ptr_of_this_method;
        }

        static object get_HideTail_4(ref object o)
        {
            return ((huqiang.UIComposite.ScrollYExtand.DataTemplate)o).HideTail;
        }

        static StackObject* CopyToStack_HideTail_4(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.UIComposite.ScrollYExtand.DataTemplate)o).HideTail;
            __ret->ObjectType = ObjectTypes.Integer;
            __ret->Value = result_of_this_method ? 1 : 0;
            return __ret + 1;
        }

        static void set_HideTail_4(ref object o, object v)
        {
            ((huqiang.UIComposite.ScrollYExtand.DataTemplate)o).HideTail = (System.Boolean)v;
        }

        static StackObject* AssignFromStack_HideTail_4(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            System.Boolean @HideTail = ptr_of_this_method->Value == 1;
            ((huqiang.UIComposite.ScrollYExtand.DataTemplate)o).HideTail = @HideTail;
            return ptr_of_this_method;
        }

        static object get_ShowHeight_5(ref object o)
        {
            return ((huqiang.UIComposite.ScrollYExtand.DataTemplate)o).ShowHeight;
        }

        static StackObject* CopyToStack_ShowHeight_5(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.UIComposite.ScrollYExtand.DataTemplate)o).ShowHeight;
            __ret->ObjectType = ObjectTypes.Float;
            *(float*)&__ret->Value = result_of_this_method;
            return __ret + 1;
        }

        static void set_ShowHeight_5(ref object o, object v)
        {
            ((huqiang.UIComposite.ScrollYExtand.DataTemplate)o).ShowHeight = (System.Single)v;
        }

        static StackObject* AssignFromStack_ShowHeight_5(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            System.Single @ShowHeight = *(float*)&ptr_of_this_method->Value;
            ((huqiang.UIComposite.ScrollYExtand.DataTemplate)o).ShowHeight = @ShowHeight;
            return ptr_of_this_method;
        }

        static object get_aniTime_6(ref object o)
        {
            return ((huqiang.UIComposite.ScrollYExtand.DataTemplate)o).aniTime;
        }

        static StackObject* CopyToStack_aniTime_6(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.UIComposite.ScrollYExtand.DataTemplate)o).aniTime;
            __ret->ObjectType = ObjectTypes.Float;
            *(float*)&__ret->Value = result_of_this_method;
            return __ret + 1;
        }

        static void set_aniTime_6(ref object o, object v)
        {
            ((huqiang.UIComposite.ScrollYExtand.DataTemplate)o).aniTime = (System.Single)v;
        }

        static StackObject* AssignFromStack_aniTime_6(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            System.Single @aniTime = *(float*)&ptr_of_this_method->Value;
            ((huqiang.UIComposite.ScrollYExtand.DataTemplate)o).aniTime = @aniTime;
            return ptr_of_this_method;
        }



        static StackObject* Ctor_0(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* __ret = ILIntepreter.Minus(__esp, 0);

            var result_of_this_method = new huqiang.UIComposite.ScrollYExtand.DataTemplate();

            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }


    }
}
